﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Company.Database.Base.Entities
{
    /// <summary>
    /// PID段主要用来构建病人的个人信息。
    /// </summary>
    [Table(nameof(HL7PID))]
    public class HL7PID : HL7Base
    {
        /// <summary>
        /// 确定不同的病人消息段
        /// </summary>
        public string? setID { get; set; }
        /// <summary>
        /// 病人的住院号
        /// </summary>
        public string? patientID { get; set; }
        /// <summary>
        /// 病历号
        /// </summary>
        public string? patientIdentifierList { get; set; }
        /// <summary>
        /// 床号
        /// </summary>
        public string? alternatePatientID { get; set; }
        /// <summary>
        /// 病人的姓名
        /// </summary>      
        public string? patientName { get; set; }
        /// <summary>
        /// 病区
        /// </summary>
        public string? mothersMaidenName { get; set; }
        /// <summary>
        /// 病人出生日期（格式：年月日时分秒。如19830512000000）可以为空。
        /// </summary>
        public DateTime dateTimeofBirth { get; set; }
        /// <summary>
        /// 性别 男发送M,女发送F ,其它发送O ,未知发送U
        /// </summary>
        public string? sex { get; set; }
        /// <summary>
        /// 血型(A血型取值’A’，B血型取值’B’，AB血型取值’AB’，O血型取值’O’，其他根据平台客户的自定义值进行取值)
        /// </summary>
        public string? patientAlias { get; set; }
        /// <summary>
        /// 置空，保留。种族
        /// </summary>
        public string? race { get; set; }
        /// <summary>
        /// 病人地址
        /// </summary>
        public string? patientAddress { get; set; }
        /// <summary>
        /// 郡县代码（邮编）
        /// </summary>
        public string? countyCode { get; set; }
        /// <summary>
        /// 电话号码
        /// </summary>
        public string? phoneNumberHome { get; set; }
        /// <summary>
        /// 置空，保留。电话号码-公司
        /// </summary>
        public string? phoneNumberBusiness { get; set; }
        /// <summary>
        /// 置空，保留。主要语言
        /// </summary>
        public string? primaryLanguage { get; set; }
        /// <summary>
        /// 置空，保留。婚姻状况
        /// </summary>
        public string? maritalStatus { get; set; }
        /// <summary>
        /// 置空，保留。宗教
        /// </summary>
        public string? religion { get; set; }
        /// <summary>
        /// 病人类别
        /// </summary>
        public string? patientAccountNumber { get; set; }
        /// <summary>
        /// 医保帐号
        /// </summary>
        public string? sSNNumberPatient { get; set; }
        /// <summary>
        /// 收费类型
        /// </summary>
        public string? driversLicenseNumberPatient { get; set; }
        /// <summary>
        /// 置空，保留。母亲标识符
        /// </summary>
        public string? mothersIdentifier { get; set; }
        /// <summary>
        /// 民族
        /// </summary>
        public string? ethnicGroup { get; set; }
        /// <summary>
        /// 出身地（籍贯）
        /// </summary>
        public string? birthPlace { get; set; }
        /// <summary>
        /// 置空，保留。多胞胎指示符，是为Y，否为N
        /// </summary>
        public string? multipleBirthIndicator { get; set; }
        /// <summary>
        /// 置空，保留。出生次序，大于0的整数
        /// </summary>
        public string? birthOrder { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? citizenship { get; set; }
        /// <summary>
        /// 置空，保留。退伍军人状态
        /// </summary>
        public string? veteransMilitaryStatus { get; set; }
        /// <summary>
        /// 国家
        /// </summary>
        public string? nationality { get; set; }
        /// <summary>
        /// 置空，保留。病人死亡时间
        /// </summary>
        public DateTime patientDeathDateandTime { get; set; }
        /// <summary>
        /// 置空，保留。病人死亡指示符，是为Y，否为N
        /// </summary>
        public string? patientDeathIndicator { get; set; }
    }
}
